# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This file has been modified to run the Treasure-Maps Application written by Thea Ganoe, October 2009.
# Treasure-Maps Copyright 2009, Thea Ganoe. This program is distributed under the terms of the GNU General Public License


from django.conf.urls.defaults import *

urlpatterns = patterns('views',
    (r'^$', 'intro'),
    (r'^intro$', 'intro'),
    (r'^route/(?P<route_key>[^\.^/]+)/play$', 'play'),
    (r'^route/(?P<route_key>[^\.^/]+)/comment$', 'addComment'),
    (r'^routeList$', 'routeList'),
    (r'^create$', 'newRoute'),
    (r'^edit$', 'editRoute'),
    (r'^editRoute/(?P<route_key>[^\.^/]+)/edit$', 'editRoute'),
    (r'^editRoute/(?P<route_key>[^\.^/]+)/$', 'routeDetails'),
    (r'^editRoute/(?P<route_key>[^\.^/]+)/routeNewUpdate/$', 'editRoute'),
    (r'^editRoute/(?P<route_key>[^\.^/]+)/updateJSONway/$', 'routeDetails'),
    (r'^editRoute/(?P<route_key>[^\.^/]+)/addGPX/$', 'routeDetailsGPX'),
    (r'^editRoute/(?P<route_key>[^\.^/]+)/leftLink$', 'addLeftLink'),
    (r'^deleteRoute/(?P<route_key>[^\.^/]+)/$', 'routeDelete'),
    #(r'^route/(?P<route_key>[^\.^/]+)/$', 'routeDetails'),
    #(r'^update/(?P<route_key>[^\.^/]+)$', 'newRoute'),
    (r'^routeNewUpdate/$', 'newRoute'),
    (r'^publish/(?P<route_key>[^\.^/]+)$', 'publish'),
    (r'^gethandle$', 'gethandle'),
    (r'^gethandle/album$', 'gethandle'),
    (r'^gethandle/getpics$', 'getpics'),
    (r'^gethandle/appendPics$', 'savePics'),
    (r'^picasaweb.google.com/$', 'renderhtml'),
    (r'^gethandle/picasaweb.google.com/$', 'renderhtml'),
    (r'^xhr_reway', 'reway'),
    (r'^xhr_newnode', 'newnode'),
    (r'^xhrsave', 'saveway'),
    (r'^rpcRouteSearch/', 'intro'),
    (r'^zrpc', 'newadd'),
    (r'^rpcGetAlbum', 'getAlbum'),
    (r'^rpcGetPics$', 'getPics'),
    (r'^rpcGetPicsGPX', 'getPicsGPX'),
    (r'^rpcSavePics', 'savePics'),
    (r'^rpcRoute/(?P<route_key>[^\.^/]+)/play$', 'aplay'),
    (r'^rpcRoute/(?P<route_key>[^\.^/]+)/mapShow$', 'mapShow'),
    (r'^rpcComment/(?P<route_key>[^\.^/]+)/newComment$', 'newComment'),
    #(r'^gethandle/(?P<route_key>[^\.^/]+)/save$', 'savePics'),
    )


